﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ClassForWinForm
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }

        private void Form5_Load(object sender, EventArgs e)
        {
            radioButton1.Checked = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string data = "我是笑林新记" + "\r\n";
            if(radioButton1.Checked)
            {
                data += "性别：男" + "\r\n";
            }
            if(radioButton2.Checked)
            {
                data += "性别：女" + "\r\n";
            }
            data+= "我会的语言有：" + "\r\n";
            if(checkBox1.Checked)
            {
                data += "C/C++,";
            }
            if (checkBox2.Checked)
            {
                data += "C#,";
            }
            if (checkBox3.Checked)
            {
                data += "Java,";
            }
            if (checkBox4.Checked)
            {
                data += "PHP,";
            }
            if (checkBox5.Checked)
            {
                data += "Python,";
            }
            if (checkBox6.Checked)
            {
                data += "Go,";
            }
            MessageBox.Show(data, "结果：");
        }
    }
}
